<div class="ui menu">
	<span class="active item">专题</span>
	<div class="right menu">
		<div class="item">
			<div class="ui icon transparent input">
				<input type="text" placeholder="模糊筛选" ng-model="subSearch">
				<i class="search link icon"></i>
			</div>
		</div>
		<a href="#!/topic/add" class="ui item">
			<i class="edit basic icon"></i> 添加专题
		</a>
	</div>
</div>


<table class="ui table segment">
	<thead>
		<tr>
			<th>名称</th>
			<th>视觉稿</th>
			<th>视觉</th>
			<th>前端</th>
			<th>发布时间</th>
			<th>头图</th>
			<th>发布渠道</th>
			<th>发布应用</th>
			<th>编辑</th>
		</tr>
	</thead>
	<tbody>
	<tr ng-repeat="topic in filtered = (topics | orderBy:'-end_time') | filter:subSearch">
		<td><a href="{{topic.topic_deploy_uri}}" target="_blank">{{topic.name}}</a></td>
		<td><a href="{{topic.topic_graphic_uri}}" target="_blank">查看</a></td>
		<td>{{topic.personnel_ga.name}}</td>
		<td>{{topic.personnel_fe.name}}</td>
		<td>{{topic.end_time}}</td>
		<td>
			<i class="icon photo tooltip-image">
				<img class="uploaded-image" ng-src="{{topic.topic_cover}}" />
			</i>
		</td>
		<td>{{topic.belong_to.name}}</td>
		<td>
			<div ng-if="topic.topic_deploy_channel_official">官网</div>
			<div ng-if="topic.topic_deploy_channel_touch">触屏站</div>
			<div ng-if="topic.topic_deploy_channel_app">APP</div>
			<div ng-if="topic.topic_deploy_channel_union">网站联盟</div>
			<div ng-if="topic.topic_deploy_channel_tmall">天猫</div>
		</td>
		<td>
			<a href="#!/topic/edit/{{topic._id}}"
				class="ui button tiny compact">编辑</a>
			<a ng-click="deleteTopic(topic._id)"
				class="ui button icon tiny compact">
				<i class="remove icon"></i>
			</a>
		</td>
	</tr>
	</tbody>
</table>

<a href="#!/topic/add" class="ui blue submit button icon">
	<i class="edit basic icon"></i>
	添加专题
</a>

